import demo from '@/views/demo.vue';
import demo2 from '@/views/2.vue';
import demo3 from '@/views/3.vue';
import err from '@/views/err.vue';
// meta: {title: 'login页', requiresAuth: true} 一个为页面标题，一个为是否需要登录
export default [
    {
        path: '/',
        name: 'demo',
        meta: { title: '我是demo', requiresAuth: false },
        component: demo
    },
    {
        path: '/rtem2',
        name: 'temp2',
        meta: { title: '我是demo2', requiresAuth: false },
        component: demo2
    },
    {
        path: '/rtem3',
        name: 'temp3',
        meta: { title: '我是demo3', requiresAuth: false },
        component: demo3
    },
    {
        path: '*',
        meta: { title: '出错啦', requiresAuth: false },
        redirect: '/404'
    },
    {
        path: '/404',
        name: 'notFound',
        meta: { title: '出错啦', requiresAuth: false },
        component: err
    }
];
